From d0c71b1a8497a3047f630cd1926f803a5190d7aa Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 30 Jul 2018 23:19:51 +0200 Subject: Fresh set of tests pre-release --- tests/cassettes/test_media_post[False].yaml | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'tests/cassettes/test_media_post[False].yaml') diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml index e406f76..c526e0b 100644 --- a/tests/cassettes/test_media_post[False].yaml +++ b/tests/cassettes/test_media_post[False].yaml @@ -1,13 +1,13 @@ interactions: - request: body: !!binary | - LS02YWVlZjY2YzNlYjA0ZDVhOTZiZTc5NDZjZTRlZGUxMw0KQ29udGVudC1EaXNwb3NpdGlvbjog + LS05MzU4YTkwZWI4NDc0NjNiYTlkOGUzMWU3Nzg5MzAwMg0KQ29udGVudC1EaXNwb3NpdGlvbjog Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u - eSB3YWxrDQotLTZhZWVmNjZjM2ViMDRkNWE5NmJlNzk0NmNlNGVkZTEzDQpDb250ZW50LURpc3Bv - c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS02YWVlZjY2YzNl - YjA0ZDVhOTZiZTc5NDZjZTRlZGUxMw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu - YW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTUzMTUxNzE0MC45MDY5MzUy - X0RYSFZXS0xLQjguanBlIg0KQ29udGVudC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYA + eSB3YWxrDQotLTkzNThhOTBlYjg0NzQ2M2JhOWQ4ZTMxZTc3ODkzMDAyDQpDb250ZW50LURpc3Bv + c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS05MzU4YTkwZWI4 + NDc0NjNiYTlkOGUzMWU3Nzg5MzAwMg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu + YW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTUzMjk4NTUxMi45NTA0NjE2 + XzFMMjRLODgwTFUuanBlIg0KQ29udGVudC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYA AQEBAEgASAAA/+ICHElDQ19QUk9GSUxFAAEBAAACDGxjbXMCEAAAbW50clJHQiBYWVogB9wAAQAZ AAMAKQA5YWNzcEFQUEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKZGVzYwAAAPwAAABe @@ -943,24 +943,24 @@ interactions: qYg3CP1hg5XagwuSZZej1N96VKgeHKRZSii9BM7fep2iK8u6Y69PxSpUVZtsdoSiQO3N/mozLhcI xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp - UqD/2Q0KLS02YWVlZjY2YzNlYjA0ZDVhOTZiZTc5NDZjZTRlZGUxMy0tDQo= + UqD/2Q0KLS05MzU4YTkwZWI4NDc0NjNiYTlkOGUzMWU3Nzg5MzAwMi0tDQo= headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['53738'] - Content-Type: [multipart/form-data; boundary=6aeef66c3eb04d5a96be7946ce4ede13] + Content-Type: [multipart/form-data; boundary=9358a90eb847463ba9d8e31e77893002] User-Agent: [python-requests/2.18.4] method: POST uri: http://localhost:3000/api/v1/media response: - body: {string: '{"id":"5","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/005/original/38595c51765c8545.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/005/small/38595c51765c8545.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/CXenhChp0kHhZcOrQvI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + body: {string: '{"id":"9","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/009/original/6d445db41d8f3659.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/009/small/6d445db41d8f3659.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/Znn_-Gq2xW4boSCkomw","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"a7e4ea214bdf49aff6737830df2284b4"] + ETag: [W/"9070231296442cffae3de885297d79e9"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -968,13 +968,13 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [6dc4638f-2769-466f-a1b9-91dac3f47f0b] - X-Runtime: ['0.084082'] + X-Request-Id: [2c198b82-0d17-429f-9d7a-e53599d24ad7] + X-Runtime: ['0.139553'] X-XSS-Protection: [1; mode=block] content-length: ['533'] status: {code: 200, message: OK} - request: - body: status=LOL+check+this+out&media_ids%5B%5D=5 + body: status=LOL+check+this+out&media_ids%5B%5D=9 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -986,16 +986,16 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"100369507354346040","created_at":"2018-07-13T21:25:41.052Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100369507354346040","content":"\u003cp\u003eLOL - check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100369507354346040","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py + body: {string: '{"id":"100465738589000517","created_at":"2018-07-30T21:18:33.162Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100465738589000517","content":"\u003cp\u003eLOL + check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465738589000517","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI - walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":34,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[{"id":"5","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/005/original/38595c51765c8545.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/005/small/38595c51765c8545.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/CXenhChp0kHhZcOrQvI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":116,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[{"id":"9","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/009/original/6d445db41d8f3659.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/009/small/6d445db41d8f3659.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/Znn_-Gq2xW4boSCkomw","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"fc08d245bb141e2a732e8c898027463d"] + ETag: [W/"a46ccdacc5b0a925f6e6f3182cc17ede"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -1003,10 +1003,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [a2ffc82e-3210-492c-927b-47b78b54157b] - X-Runtime: ['0.148640'] + X-Request-Id: [c7d7ed56-e7ed-4be8-a905-01461604e6c7] + X-Runtime: ['0.230335'] X-XSS-Protection: [1; mode=block] - content-length: ['2055'] + content-length: ['2056'] status: {code: 200, message: OK} - request: body: null @@ -1018,13 +1018,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/statuses/100369507354346040 + uri: http://localhost:3000/api/v1/statuses/100465738589000517 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"7a93246f8748d698aab25717c6eb6268"] + ETag: [W/"dd8d0a4afede5f7118e71076dbb426d4"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -1032,8 +1032,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e8cad844-bde6-415c-8511-730722135cf1] - X-Runtime: ['0.070838'] + X-Request-Id: [3e233abd-a9f0-44af-b74b-8d50faaefa88] + X-Runtime: ['0.070429'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3